package com.jm.web.tags;

import com.jm.web.builder.ScriptBuilder;
import com.jm.web.tags.support.BaseTag;

/**
 * @author yanjie
 * Oct 27, 2011 7:53:37 AM
 */
public class ScriptTag extends BaseTag{
	private static final long serialVersionUID = -3824345613460001714L;
	
	@Override
	public String getBuilderName() {
		return ScriptBuilder.class.getName();
	}
	
	@Override
	protected int onStartTag() {
		if(this.getPage().isExport() && !this.isEp()){
			return SKIP_BODY;
		}
		return EVAL_BODY_BUFFERED;
	}
}
